package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;

/**
 * <p>
 * 评论模块
 * </p>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comments")
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 评论ID
     */
    @TableId(value = "c_id", type = IdType.AUTO)
    @JsonProperty("cId")
    private Integer cId;

    /**
     * 该评论的所属用户id
     */
    @JsonProperty("cUserId")
    private Integer cUserId;

    /**
     * 该评论的所属商品ID
     */
    @JsonProperty("cGoodsId")
    private Integer cGoodsId;

    /**
     * 评论内容
     */
    @JsonProperty("cBio")
    private String cBio;
}
